<?php /* Smarty version 2.6.20, created on 2013-05-25 01:44:44
         compiled from base.inc.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'base.inc.tpl', 2, false),)), $this); ?>
<?php if ($this->_tpl_vars['template'] != 'pagereceipt' && $this->_tpl_vars['template'] != 'pagecontract'): ?>
  <title><?php echo ((is_array($_tmp=@APPLICATION_NAME)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
 - Pozzolana Web Development</title>
<?php else: ?>
 <title id="app_name"></title>
<?php endif; ?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="We provide high quality website design, hosting, maintenance, promotion and e-commerce services to business throughout the worldwide. ">
<meta name="keywords" content="pozzoalana, pozzoalana website design, pozzoalana web, pozzoalana design, web, design, website design, hosting, maintance, web site, designing, designer, developer, macromedia flash, e-shop, e-commerce, e commerce, online, store, shop">
<link rel="stylesheet" title="Default" type="text/css" charset="UTF-8" href="<?php echo ((is_array($_tmp=$this->_config[0]['vars']['styleSheetName'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
.css" media="screen, all">
<link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon">
<script type="text/javascript">
/*var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-10473213-5']);
_gaq.push(['_trackPageview']);
(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();*/

function customerId(customerId) {
  if (customerId < 100000 && customerId >= 10000) {
    customerId = customerId;
  } else if (customerId < 10000 && customerId >= 1000) {
    customerId = '0' + customerId;
  } else if (customerId < 1000 && customerId >= 100) {
    customerId = '00' + customerId;
  } if (customerId < 100 && customerId >= 10) {
    customerId = '000' + customerId;
  } if (customerId < 10 && customerId > 0) {
    customerId = '0000' + customerId;
  }
  return customerId;
};

if ('<?php echo ((is_array($_tmp=$this->_tpl_vars['template'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
' == 'pagecontract') {
  document.getElementById('app_name').innerHTML =  '<?php echo ((is_array($_tmp=@BRANCH)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
' + customerId(JSON.parse('<?php echo ((is_array($_tmp=$this->_tpl_vars['options'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
').id) + '  ' + 'bookingform';
} else if ('<?php echo ((is_array($_tmp=$this->_tpl_vars['template'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
' == 'pagereceipt') {
  document.getElementById('app_name').innerHTML ='<?php echo ((is_array($_tmp=@BRANCH)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
' + customerId(JSON.parse('<?php echo ((is_array($_tmp=$this->_tpl_vars['options'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
').id) + '  ' +'receipt';
}
</script>